import { Component, OnInit } from '@angular/core';
import {HttpClient, HttpHeaders, HttpParams} from '@angular/common/http';

@Component({
    selector: 'app-home',
    templateUrl: './home.component.html',
    styleUrls: ['./home.component.scss']
})
export class HomeComponent implements OnInit {

    constructor(private http: HttpClient) { }

    ngOnInit() {
    }
    public test() {
      this.http.get('http://localhost:5555/as/menuApi/list').subscribe(data => {
        console.log(data);
      });
      return '测试组件调用';
    }

}
